Got a PSOD? Check which VMs restarted by HA!

We design highly redundant Datacenters, Clusters, Storage Systems and even Networks, but in the end we still have some unplaned outages :/ This week we had a defect Memory DIMM that caused a PSOD on one ESXi Host. HA restarted the VMs fine, but we want to know quickly which VMs restarted. Check out a PowerCLI one liner to find the restarted VMs! $Date=Get-Date $HAVMrestartold=1 Get-VIEvent -maxsamples 100000 -Start ($Date).AddDays(-$HAVMrestartold) -type warning | Where {$_.FullFormattedMessage -match “HA restarted”} |select CreatedTime,FullFormattedMessage … Continue reading Got a PSOD? Check which VMs restarted by HA!